//
//  GTProgressHUDManager.m
//  GiftTalk
//
//  Created by Wan on 16/4/8.
//  Copyright © 2016年 Wan. All rights reserved.
//

#import "GTProgressHUDManager.h"

@implementation GTProgressHUDManager

#pragma mark - Setters

+ (void)setBackgroundColor:(UIColor *)color {
    [SVProgressHUD setBackgroundColor:color];
}

+ (void)setForegroundColor:(UIColor *)color {
    [SVProgressHUD setForegroundColor:color];
}

+ (void)setFont:(UIFont *)font {
    [SVProgressHUD setFont:font];
}

+ (void)setErrorImage:(UIImage *)image {
    [SVProgressHUD setErrorImage:image];
}

+ (void)setSuccessImage:(UIImage *)image {
    [SVProgressHUD setSuccessImage:image];
}

#pragma mark - Show then dismiss methods

+ (void)showImage:(UIImage *)image status:(NSString *)status {
    [SVProgressHUD showImage:image status:status];
}

+ (void)show:(UIImage *)show {
    [SVProgressHUD show];
}

+ (void)dismiss {
    [SVProgressHUD dismiss];
}

+ (void)showWithStatus:(NSString *)status {
    [SVProgressHUD showWithStatus:status];
}

+ (void)showSuccessWithStatus:(NSString *)string {
    [SVProgressHUD showWithStatus:string];
}

#pragma mark - Utilities

+ (BOOL)isVisible {
    return [SVProgressHUD isVisible];
}

@end
